﻿@using Orchard.Comments.Models
@{
    CommentsPart commentsPart = Model.ContentPart;
    
    // add 'comments' class on the list container
    Model.List.Classes.Add("comments");
    Model.List.Id = string.Format("comments_{0}", commentsPart.ContentItem.Id);
}

@Display(Model.List)

@* render reply button if threaded comments enabled *@
@if(commentsPart.ThreadedComments) {
    Script.Require("Comments.Threaded").AtFoot();
}